﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using log4net;
using log4net.Config;

namespace StyrApp
{
    public static class Logger
    {
        public static void Info(string message)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Info(message);
        }

        public static void Info(string message,Exception e)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Info(message,e);
        }

        public static void Debug(string message)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Debug(message);
        }

        public static void Debug(string message, Exception e)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Debug(message, e);
        }

        public static void Error(string message)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Error(message);
        }

        public static void Error(string message, Exception e)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Error(message, e);
        }

        public static void Fatal(string message)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Fatal(message);
        }

        public static void Fatal(string message, Exception e)
        {
            XmlConfigurator.Configure();
            LogManager.GetLogger("Logger").Fatal(message, e);
        }
    }
}